<?php

pest()->beforeAll(function () {
    expect($_SERVER['globalHook']->calls->beforeAll)
        ->toBe(0);

    $_SERVER['globalHook']->calls->beforeAll++;
});

it('gets called before all tests 1', function () {
    expect($_SERVER['globalHook']->calls->beforeAll)->toBe(1);
})->repeat(2);

it('gets called before all tests 2', function () {
    expect($_SERVER['globalHook']->calls->beforeAll)->toBe(1);
});
